import os
n3=dir()
li=[]
path='/var/www/html'
def finddirctory(path):
    for f in os.walk(path,topdown=True):

        if os.path.isdir(f):
            li.append(f)
            os.chdir(f)
            finddirctory(f)
finddirctory(path)
print(li)